﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Data.Objects;
using JChatCore.City;
namespace JChatData.CityMap
{
   public class CityMap:EntityConfiguration<City>
    {
       /// <summary>
       /// Mapping to entity
       /// Code by Linh Pham
       /// </summary>
       public CityMap()
       {
           HasKey(c => c.CityID);
           Property(c => c.CityID).IsIdentity();
           Property(c => c.NameCity).IsRequired();
           Property(c => c.CounTryID);

       }
    }
}
